import axios from 'axios';

// let host = `http://aliyun.willet.cool`
let host = `http://cloud189.willet.cool:1281`
// let host = `http://localhost:1281`

const instance = {
  getFileList: function (fileId, callback) {
    axios.get(`${host}/v1/getList?fileId=${fileId}`)
      .then(data => callback(data))
  },
  getFileUrl: function (url, callback) {
    axios.get(`${host}/v1/fileUrl?url=${url}`)
        .then(data => callback(data))
  },

}

export default instance
